package com.wujiansima.renyisima.demo;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo8 {
    public static void main(String[] args) {
        try(FileInputStream fis =new FileInputStream("myFiles\\Demo7.java");
            FileOutputStream fos = new FileOutputStream("myFiles\\copy.java");){


            int b;
            while ((b = fis.read()) != -1 ){
                fos.write(b);
            }
        } catch (IOException e) {

        }
    }
}
